Component({
    data: {
        
        characters: [
          { name: '张三', image: '/image/photo.png', phone: '123456789', email: 'zhangsan@example.com', introduction: '张三的个人介绍...' },
          { name: '李四', image: '/image/photo.png', phone: '123456789', email: '李四@example.com', introduction: '李四的个人介绍...' },
          { name: '王五', image: '/image/photo.png', phone: '123456789', email: '王五@example.com', introduction: '王五的个人介绍...' },
          { name: '找六', image: '/image/photo.png', phone: '123456789', email: '找六@example.com', introduction: '找六的个人介绍...' },
          // ... 其他人物数据 ...
        ],
        showModal: false,
        currentCharacter: {}
      },
      showDetail: function(e) {
        const index = e.currentTarget.dataset.index;
        this.setData({
          currentCharacter: this.data.characters[index],
          showModal: true
        });
      },
      hideDetail: function() {
        this.setData({
          showModal: false
        });
      }
 ,
  methods: {
    showDetail: function(e) {
      const index = e.currentTarget.dataset.index;
      this.setData({
        currentCharacter: this.data.characters[index],
        showModal: true
      });
    },
    hideDetail: function() {
      this.setData({
        showModal: false
      });
    }
  },
  
 });